<%@taglib prefix="in" uri="/WEB-INF/TagDescriptor.tld"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Add Opportunity</title>
<in:pHeader incTiny="yes" />
<link rel="stylesheet" type="text/css" href="includes/css/style.css" />
<script type="text/javascript" src="includes/js/addOpportunity.js"></script>
</head>
<body>
	<in:form id="ff" style="height: 600px;"
		title="Register New Opportunity">
		<input type="hidden" name="market" id="market" value="${market}" />
		<input type="hidden" name="projectType" id="projectType"
			value="${projectType}" />
		<input type="hidden" name="portfolio" id="portfolio"
			value="${portfolio}" />
		<input type="hidden" name="portfolioName" id="portfolioName"
			value="${portfolioName}" />
	
		<input type="hidden" name="userId" id="userId" value="${userId}" />
		
		<input type="hidden" name="opportunityId" id="opportunityId"
			value="${opportunityId}" />
		<input type="hidden" name="prjObjId" id="prjObjId" value="${prjObjId}" />
		
		
		<div class="easyui-accordion">
			<div title="General" style="overflow: auto; padding: 5px;">
				<table>
					<in:attr type="text" id="title" title="Title" required="yes"
						style="width: 400px;height:20px" />
					<in:attr type="text" id="packageName" title="Work Package Name"
						style="width: 400px;height:20px" />
					<in:attr type="text" id="contractNo" title="Contract Number"
						style="width: 400px;height:20px" />
					<in:attr type="textarea" id="description" title="Description"
						style="height: 120px; width: 400px" />
					<in:attr type="text" id="location" title="Location" required="yes"
						style="width: 340px;height:20px" code="yes" />
					<in:attr type="text" id="customer" title="Customer" required="yes"
						style="width: 340px;height:20px" code="yes" />
					<in:attr title="Is Joint Venture?" id="isJV" type="p6code"
						code="Is Joint Venture?" style="width:100px;"></in:attr>
					<in:attr type="textarea" id="jvDetails" title="JV details"
						style="height: 100px; width: 400px" />
					<in:attr type="cost" id="contractVal" title="Contract Value"
						required="yes" style="width: 200px;height:20px" />
				</table>
			</div>
			<div title="Details" style="padding: 10px;">
				<table>
					<in:attr type="textarea" id="regulatoryRequirement"
						title="Regulatory Requirements"
						style="height: 120px; width: 400px;" />
					<in:attr type="textarea" id="riskSynopsis" title="Risk Synopsis"
						style="height: 120px; width: 400px;" />
					<in:attr type="textarea" id="fundingDetail" title="Funding Details"
						style="height: 120px; width: 400px;" />
					<in:attr type="textarea" id="competitiveAnaiysis"
						title="Competitive Analysis" style="height: 120px; width: 400px;" />
				</table>
			</div>
			<div title="Bid/Project Timeline" style="padding: 10px;">
				<table>
					<in:attr type="date" id="bidDate" required="yes"
						title="Bid Submission By" />
					<in:attr type="date" id="awardDate" title="Award Date" />
					<in:attr type="date" id="prjStDate" title="Project Start Date" />
					<in:attr type="text" id="prjDuration" title="Project Duration" />
					<in:attr type="textarea" id="timelineNotes"
						title="Additional Notes on Timeline"
						style="height: 120px; width: 400px;" />
				</table>
			</div>
		</div>
	</in:form>
	<in:customerSel />
	<in:locationSel />
	<div style="text-align: right; padding: 15px">
		<in:btn id="saveBtn" title="Save" onclick="saveOpportunity();" />
		&nbsp;&nbsp;
		<in:btn id="clearBtn" title="Clear" onclick="resetForm();" />
	</div>
</body>
</html>
